<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "set_product_commission".
 *
 * @property int $id
 * @property int $product_id
 * @property float $vip1
 * @property float $vip2
 * @property float $svip1
 * @property float $svip2
 * @property float $new1
 * @property float $new2
 * @property float $new3
 * @property float $new4
 * @property float $r1_1
 * @property float $r1_2
 * @property float $r2_1
 * @property float $r2_2
 * @property float $r2_3
 * @property float $r2_4
 */
class SetProductCommission extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'set_product_commission';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['product_id'], 'integer'],
            [['vip1', 'vip2', 'svip1', 'svip2'], 'number'],
            [['new1', 'new2', 'new3', 'new4'], 'safe'],


            [['new_vip1', 'new_vip2', 'new_vip3', 'new_vip4', 'new_vip5'], 'safe'],


            [['r1_1', 'r1_2', 'r2_1', 'r2_2', 'r2_3', 'r2_4'], 'safe'],
            [['r1_3'], 'safe'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'product_id' => 'Product ID',
            'vip1' => 'Vip 1',
            'vip2' => 'Vip 2',
            'svip1' => 'Svip 1',
            'svip2' => 'Svip 2',
        ];
    }
}
